import java.io.FileNotFoundException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-07-15
 * Time: 9:53
 */
public class Test1 {
    public static void func(int a) throws CloneNotSupportedException, FileNotFoundException {
        if(a == 0){
            throw new CloneNotSupportedException("克隆异常");
        }
        if(a == 1){
            throw new FileNotFoundException("配置文件名不对");
        }
    }
    public static void main(String[] args) throws FileNotFoundException, CloneNotSupportedException {
        int a = 1;
        func(a);

    }
}
